package com.codeoss.framework.workflow.def;

import com.codeoss.framework.expression.Expression;

public class TaskNodeDef extends NodeDef {
	private String name;
   
    private String userAssignment;
    private String roleAssignment;
    private Expression assignmentExpression;
    private boolean sequence;
    private String completeRule;
    private int count;
    private int percent;
    
    /**暂时未实现*/
    private boolean canAddTask;//加签
    private boolean canSubtractTask;//减签
    private boolean canFetch;//取回
    private boolean canJump;//任意跳转
    
    private boolean canBack;//回退
    private boolean canUserInput;//用户输入
 
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}



	public String getUserAssignment() {
		return userAssignment;
	}

	public void setUserAssignment(String userAssignment) {
		this.userAssignment = userAssignment;
	}

	public String getRoleAssignment() {
		return roleAssignment;
	}

	public void setRoleAssignment(String roleAssignment) {
		this.roleAssignment = roleAssignment;
	}

	public Expression getAssignmentExpression() {
		return assignmentExpression;
	}

	public void setAssignmentExpression(Expression assignmentExpression) {
		this.assignmentExpression = assignmentExpression;
	}

	public boolean isSequence() {
		return sequence;
	}

	public void setSequence(boolean sequence) {
		this.sequence = sequence;
	}

	public String getCompleteRule() {
		return completeRule;
	}

	public void setCompleteRule(String completeRule) {
		this.completeRule = completeRule;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getPercent() {
		return percent;
	}

	public void setPercent(int percent) {
		this.percent = percent;
	}

	public boolean isCanBack() {
		return canBack;
	}

	public void setCanBack(boolean canBack) {
		this.canBack = canBack;
	}

	public boolean isCanJump() {
		return canJump;
	}

	public void setCanJump(boolean canJump) {
		this.canJump = canJump;
	}

	public boolean isCanAddTask() {
		return canAddTask;
	}

	public void setCanAddTask(boolean canAddTask) {
		this.canAddTask = canAddTask;
	}

	public boolean isCanSubtractTask() {
		return canSubtractTask;
	}

	public void setCanSubtractTask(boolean canSubtractTask) {
		this.canSubtractTask = canSubtractTask;
	}

	public boolean isCanFetch() {
		return canFetch;
	}

	public void setCanFetch(boolean canFetch) {
		this.canFetch = canFetch;
	}

	public boolean isCanUserInput() {
		return canUserInput;
	}

	public void setCanUserInput(boolean canUserInput) {
		this.canUserInput = canUserInput;
	}

	@Override
	public String getType() {
		// TODO Auto-generated method stub
		return "task";
	}

}
